package com.myncounters;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;

import com.google.android.maps.Overlay;
import com.google.android.maps.Point;



public class myOverlay extends Overlay {
	private Point point;
	
	public myOverlay(Point p){
		point = p;
	}
	
	 public void draw(Canvas canvas, PixelCalculator calculator, boolean
			 shadow) {
		 int[] screenCoords = new int[2];
		 calculator.getPointXY(point, screenCoords);
		 
		 RectF oval = new RectF(screenCoords[0]-10,screenCoords[1]+10,screenCoords[0]+10,screenCoords[1]-10);
		
	
		 Paint paint = new Paint();
		 paint.setARGB(200, 255, 0, 0);
		 canvas.drawOval(oval, paint);

			 }

}
